package com.markby.fscm.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName SM2_store
 */
@TableName(value ="SM2_store")
@Data
public class Sm2Store implements Serializable {
    /**
     * 
     */
    @TableId(value = "id")
    private String id;

    /**
     * 
     */
    @TableField(value = "key_index")
    private Integer key_index;

    /**
     * 
     */
    @TableField(value = "type")
    private String type;

    /**
     * 
     */
    @TableField(value = "sign_pri")
    private String sign_pri;

    /**
     * 
     */
    @TableField(value = "sign_pub")
    private String sign_pub;

    /**
     * 
     */
    @TableField(value = "enc_pri")
    private String enc_pri;

    /**
     * 
     */
    @TableField(value = "enc_pub")
    private String enc_pub;

    /**
     * 
     */
    @TableField(value = "password")
    private String password;

    /**
     * 
     */
    @TableField(value = "time")
    private String time;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Sm2Store other = (Sm2Store) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getKey_index() == null ? other.getKey_index() == null : this.getKey_index().equals(other.getKey_index()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getSign_pri() == null ? other.getSign_pri() == null : this.getSign_pri().equals(other.getSign_pri()))
            && (this.getSign_pub() == null ? other.getSign_pub() == null : this.getSign_pub().equals(other.getSign_pub()))
            && (this.getEnc_pri() == null ? other.getEnc_pri() == null : this.getEnc_pri().equals(other.getEnc_pri()))
            && (this.getEnc_pub() == null ? other.getEnc_pub() == null : this.getEnc_pub().equals(other.getEnc_pub()))
            && (this.getPassword() == null ? other.getPassword() == null : this.getPassword().equals(other.getPassword()))
            && (this.getTime() == null ? other.getTime() == null : this.getTime().equals(other.getTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getKey_index() == null) ? 0 : getKey_index().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getSign_pri() == null) ? 0 : getSign_pri().hashCode());
        result = prime * result + ((getSign_pub() == null) ? 0 : getSign_pub().hashCode());
        result = prime * result + ((getEnc_pri() == null) ? 0 : getEnc_pri().hashCode());
        result = prime * result + ((getEnc_pub() == null) ? 0 : getEnc_pub().hashCode());
        result = prime * result + ((getPassword() == null) ? 0 : getPassword().hashCode());
        result = prime * result + ((getTime() == null) ? 0 : getTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", key_index=").append(key_index);
        sb.append(", type=").append(type);
        sb.append(", sign_pri=").append(sign_pri);
        sb.append(", sign_pub=").append(sign_pub);
        sb.append(", enc_pri=").append(enc_pri);
        sb.append(", enc_pub=").append(enc_pub);
        sb.append(", password=").append(password);
        sb.append(", time=").append(time);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}